-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding angle and uniform weights in per_vertex_normals #141
base: main
Are you sure you want to change the base?
Conversation
Hi Nicolas, Thanks for your contribution. We'll review it and then give you feedback. Things I noticed from skimming your PR:
@sgsellan we should take this as an opportunity to maybe change the unit tests for per_vertex_normal... there are no examples testing on a very basic input, and the test file is over a MB. |
Hello professor Oded, Thank you for the prompt reply and your feedback. I adjusted the code. I chose the back up normal to be the nearest valid normal. Also, the user has the ability to either correct or omit invalid normals. In the extreme case that there are no valid normals at all, I assign a default normal. Let me know if anything else needs refining. |
This looks ok to me. |
Awesome! |
This looks great to me! One question: shouldn't |
Also noticed that there's no test for angle weights, probably worth writing one |
Adding angle and uniform weights in per_vertex_normals, testing with armadillo using the files:
test_uniform_per_vertex_normals.py
test_angle_per_vertex_normals.py